package com.neusoft.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单
 */
public class Order {

    private Integer order_id;

    /**
     * 订单流水号
     */
    private String orderNumber;

    /**
     * 订单买家
     */
    private Integer userId;

    /**
     * 订单买家实体，用以关联查询，在数据库中不需要建立此字段
     */
    private User user;

    /**
     * 订单创建时间
     */
    private Date createDate;

    /**
     * 订单结束时间
     */
    private Date endDate;
    /**
     * 订单状态 1待付款 2待收货 3退款中 4已完成
     */
    private Integer state;

    /**
     * 订单金额
     */
    private BigDecimal price;

    /**
     * 订单是否删除 0否 1是
     */
    private Integer is_visible;



    public Integer getOrder_id() {
		return order_id;
	}

	public void setOrder_id(Integer order_id) {
		this.order_id = order_id;
	}

	public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getIs_visible() {
        return is_visible;
    }

    public void setIs_visible(Integer is_visible) {
        this.is_visible = is_visible;
    }
}
